class  MyDebug {

    private static tt:Laya.Text;

    constructor() {

    }

    private static CreateText(size:number):Laya.Text
    {
        var t = new Laya.Text();
        t.fontSize = size;
        t.color = "#FFFFFF";
        // t.bgColor = "#696969";
        t.size(300,100);
        t.overflow = Laya.Text.VISIBLE;
        t.y = 30;
        t.x = 50;
        t.text = "iuio";
        return t;
    }

    public static ShowTextInfo(info:string,size:number):void
    {
        if(!this.tt)
        {
            this.tt = this.CreateText(size);
            Laya.stage.addChild(this.tt);
        }
        this.tt.text = info;
       
    }
}